export function typeToComponent(type) {
    if (typeof type === "string") {
        type = type.charAt(0).toUpperCase() + type.slice(1);
        return `Wx${type}`;
    }
    return "WxTime";
}